import csv
csvPath='./data_zj_GDP.csv'
with open(csvPath,"r") as d:
    dataReader=csv.reader(d)

    import csv
    gdpYear=[]
    gdpData=[]

    csvPath='./data_zj_GDP.csv'
    with open(csvPath,"r") as d:
        dataReader=csv.reader(d)
        lineNum = 0
        for row in dataReader:
            if(lineNum!=0):
                gdpYear.append(row[0])
                gdpData.append(float(row[1]))
            lineNum += 1

    from matplotlib import pyplot as plt
    ......
    plt.bar(gdpYear,gdpData,width=0.5,color='r')
    for a,b in zip(gdpYear,gdpData):
        plt.text(a,b,'%.1f'% b,ha='center',va='bottom',fontsize=10)
    plt.rcParams['font.sans-serif']=['SimHei']
    plt.title('1998~2018浙江省GDP变化图')

    csvPath='./data_zj_GDP.csv'
    gdpYear=[]
    gdpIncrease=[]
    with open(csvPath,"r") as d:
        dataReader=
        lineNum=0
        for row in dataReader:
            if(lineNum!=0):
                gdpYear.append()
                gdpIncrease.append(float(row[-1]))
pIncrese中
         lineNum+=1

    from matplotlib import pyplot as plt
    ......
    plt.plot(gdpYear,gdpIncrease,'go-')
    for a,b in zip(gdpYear,gdpIncrease):
        plt.text(a,b,str(b)+'%')
    plt.ylim(0,20)
    plt.rcParams['font.sans-serif']=['SimHei']
    plt.title('1998~2018浙江省GDP增速变化图')
    plt.show()

    csvPath='./data_zj_GDP.csv'
    with open()as d:
        dataReader = d.readline()
    data2018 = dataReader[-1].split(',')
    dataYear = dataReader[0].split(',')
    data2018pie=data2018

    from matplotlib import pyplot as plt
    import csv
    ......
    explode=[0.1,0.1,0.1]
    plt.pie(data2018pie,explode,dataYear[2:5]
            autopct='% 1.1f% %',shadow=True,startangle=90)
    plt. =['SimHei']
    plt.title('2018浙江省GDP三大产业比例')

    csvPath='./data_zj_GDP.csv'
    gdpYear=[]
    gdpData1=[]
    gdpData2=[]
    gdpData3=[]
    with open(csvPath,"r") as d:
        dataReader=csv.reader(d)
        lineNum=0
        for row in dataReader:
            if():
                if(int(row[0])>2007):
                    gdpYear.append(row[0])
                    gdpDate1.append(row[2])
                    gdpdata2.append()
                    gdpdata3.append(row[4])


